<template>
  <div>
    <div class="bottom-btns">
      <div class="btns">
        <div class="back-btn">
          <el-button
          v-if="isShow"
            type="primary"
            round
            @click="save"
            >保存</el-button
          >
          <el-button v-if="isShow" type="success" round @click="submit"
            >提交</el-button
          >
          <el-button type="info" round @click="close">关闭</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  isShow: {
    type: Boolean,
    default: true,
  },
  isShowsave: {
    type: Boolean,
    default: false,
  },
  workFlow: {
    type: Boolean,
    default: false,
  },
});
const emit = defineEmits(["save", "submit", "close","pass","back"]);
// 保存
const save = () => {
  emit("save");
};
// 提交
const submit = () => {
  emit("submit");
};
// 通过
const pass = () => {
  emit("pass");
};
// 退回修改
const back = () => {
  emit("back");
};
/** 关闭按钮 */
const close = () => {
  emit("close");
};
</script>

<style lang="scss" scoped>

</style>
